package com.rzjm.exercise.module.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rzjm.exercise.common.base.service.impl.BaseServiceImpl;
import com.rzjm.exercise.module.dao.TerminalCheckRecordDao;
import com.rzjm.exercise.module.domain.TerminalCheckRecord;
import com.rzjm.exercise.module.domain.TerminalCleanRecord;
import com.rzjm.exercise.module.domain.TerminalHealthRecord;
import com.rzjm.exercise.module.service.TerminalCheckRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service
public class TerminalCheckRecordServiceImpl extends BaseServiceImpl<TerminalCheckRecordDao, TerminalCheckRecord>
        implements TerminalCheckRecordService {
    @Resource
    private TerminalCheckRecordDao terminalCheckRecordDao;

    @Override
    public List<TerminalCheckRecord> getPageByUserId(Page<TerminalCheckRecord> page, Map<String, Object> map) {
        return terminalCheckRecordDao.getPageByUserId(page,map);
    }

    @Override
    public Integer getCountBySysUserId(Map<String, Object> map) {
        return terminalCheckRecordDao.getCountBySysUserId(map);
    }

    @Override
    public List<TerminalCheckRecord> getPageByUserId(Map<String, Object> map) {
        return terminalCheckRecordDao.getPageByUserId(map);
    }

    @Override
    public List<TerminalCleanRecord> getCleanPageByUserId(Map<String, Object> map) {
        return terminalCheckRecordDao.getCleanPageByUserId(map);
    }

    @Override
    public List<TerminalHealthRecord> getHealthPageByUserId(Map<String, Object> map) {
        return terminalCheckRecordDao.getHealthPageByUserId(map);
    }

    @Override
    public List<TerminalCheckRecord> getRepairPageByUserId(Page<TerminalCheckRecord> page, Map<String, Object> map) {
        return terminalCheckRecordDao.getRepairPageByUserId(page,map);
    }
}
